import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    // 首页
    path: '/',
    name: 'home',
    component: ()=>import('../views/EstateHome')
  },
  {
    // 经纪人
    path: '/agent',
    name: 'agent',
    component: ()=>import('../views/EstateAgent')
  },
  { 
    // 分类
    path: '/class',
    name: 'class',
    component: ()=>import('../views/EstateClass')
  },
  {
    // 声明
    path: '/Statement',
    name: 'statement',
    component: ()=>import('../views/Statement')
  },
  {
    // 声明
    path: '/list',
    name: 'list',
    component: ()=>import('../views/list')
  },
  {
    // 演示
    path: '/test',
    name: 'test',
    component: ()=>import('../views/test.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
